/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import org.workplicity.task.NetTask;
import org.workplicity.util.Helper;
import org.workplicity.worklet.WorkletContext;

/**
 *
 * @author Marist User
 */
public class Main {
    private static WorkletContext context = WorkletContext.getInstance();
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        try {
            NetTask.setUrlBase("http://localhost:8080/netprevayle/task");
            
            if(!Helper.login("admin","gaze11e",context))
                throw new Exception("login failed");

            javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName());
        } catch (Exception e) {
//            Logger.log(e.toString());
        }

        TableForm form = new TableForm();

        form.setVisible(true);
    }

}
